<template>
  <el-footer class="footer-wrapper">
        <!-- 回到顶部按钮 -->
    <div class="back-to-top" @click="scrollToTop">
      <span>^ ページの先頭へ</span>
    </div>
    <div class="footer-content">
      <div class="footer-left">
        <div class="footer-section">
          <h4>プレス</h4>
          <ul>
            <a href="#" style="text-decoration: none;">
            <li>プレス</li>
            <li>仕事を探す</li>
            <li>動画・映像・アニメーション</li>
            <li>音楽・音響・ナレーション</li>
            <li>ビジネス・マーケティング・企画</li>
            </a>

          </ul>
        </div>
      </div>
      <div class="footer-right">
        <div class="footer-section">
          <h4>会社情報</h4>
          <ul>
            <li><a href="/company" style="color: aliceblue;text-decoration: none;">会社概要</a></li>
          </ul>
        </div>
      </div>
    </div>
    <div class="footer-bottom">
      <a href="/" style="text-decoration: none;">
      <span class="copyright-text">copyright (c) WorkMatch all rights reserved.</span>
      <p>日本最大級のクラウドソーシング「クラウドワークス」</p>
      </a>

    </div>
  </el-footer>
</template>

<script setup>
const scrollToTop = () => {
  window.scrollTo({
    top: 0,
    behavior: 'smooth'
  });
};
</script>

<style scoped>
a:hover{
  text-decoration: none;
}
.footer-wrapper {
  padding: 0;
  width: 100%;
  margin-top: auto;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-content {
  width: 100%;
  color: #ffffff;
  background-color: #1976d2;
  display: flex;
  justify-content: flex-start;
  gap: 100px;
  padding: 40px 270px 20px;
  box-sizing: border-box;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex: 2 0 200px;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding: 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.8;
  /* margin-bottom: 5px; */
  cursor: pointer;
}



.footer-bottom {
  background-color: #1976d2;
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.copyright-text {
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin: 0;
  display: block;
}

.footer-bottom p {
  color: #ffffff;
  margin: 5px 0 0 0;
  font-size: 11px;
}

.back-to-top {
    align-items: center;
    background-color: #ecedf0;
    border: 0;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, .3), 0 0 3px 1px rgba(0, 0, 0, .15);
    color:#006ab6;
    display: flex;
    font: 700 12px / 1 "Hiragino Kaku Gothic Pro", sans-serif;
    gap: 2px;
    height: 48px;
    justify-content: center;
    width: 100%;
}



.back-to-top span {
  display: inline-block;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    padding: 30px 20px 15px;
  }
  
  .footer-left {
    margin-bottom: 20px;
  }
  
  .footer-right {
    flex: none;
  }
  
  .copyright-text {
    font-size: 10px;
  }
  
  .footer-bottom p {
    font-size: 10px;
  }
}

@media screen and (max-width: 480px) {
  .footer-content {
    padding: 20px 15px 10px;
  }
  
  .footer-section h4 {
    font-size: 13px;
  }
  
  .footer-section li {
    font-size: 11px;
  }
  
  .copyright-text {
    font-size: 9px;
  }
  
  .footer-bottom p {
    font-size: 9px;
  }
}
</style>